package com.hz.common.freemarker;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropertiesUtil {
	private String author;
	
	private String packageName;
	
	private String iServicePath;
	
	private String servicePath;
	
	private String iInterfacePath;
	
	private String interfacePath;
	
	private String hzOperateCodePath;

	public PropertiesUtil() {
		Properties properties = new Properties();
		// 使用ClassLoader加载properties配置文件生成对应的输入流
		InputStream in = PropertiesUtil.class.getClassLoader().getResourceAsStream("config.properties");
		// 使用properties对象加载输入流
		try {
			properties.load(in);
		} catch (IOException e) {
			e.printStackTrace();
		}
		// 获取key对应的value值
		this.packageName = properties.getProperty("packageName");
		this.iServicePath = properties.getProperty("iServicePath");
		this.servicePath = properties.getProperty("servicePath");
		this.author = properties.getProperty("author");
		this.iInterfacePath = properties.getProperty("iInterfacePath");
		this.interfacePath = properties.getProperty("interfacePath");
		this.hzOperateCodePath = properties.getProperty("hzOperateCodePath");
	}

	public String getPackageName() {
		return packageName;
	}

	public void setPackageName(String packageName) {
		this.packageName = packageName;
	}

	public String getiServicePath() {
		return iServicePath;
	}

	public void setiServicePath(String iServicePath) {
		this.iServicePath = iServicePath;
	}

	public String getServicePath() {
		return servicePath;
	}

	public void setServicePath(String servicePath) {
		this.servicePath = servicePath;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getiInterfacePath() {
		return iInterfacePath;
	}

	public void setiInterfacePath(String iInterfacePath) {
		this.iInterfacePath = iInterfacePath;
	}

	public String getInterfacePath() {
		return interfacePath;
	}

	public void setInterfacePath(String interfacePath) {
		this.interfacePath = interfacePath;
	}

	public String getHzOperateCodePath() {
		return hzOperateCodePath;
	}

	public void setHzOperateCodePath(String hzOperateCodePath) {
		this.hzOperateCodePath = hzOperateCodePath;
	}
	
}
